package com.zhdl.modules.prefiresys.service;

import com.project.common.service.BaseService;
import com.zhdl.modules.prefiresys.entity.Detector;
import com.zhdl.modules.prefiresys.entity.EventRecords;
import com.zhdl.modules.prefiresys.web.request.EventAlarmInfoReq;
import com.zhdl.modules.prefiresys.web.request.EventRecordsListRequest;
import com.zhdl.modules.prefiresys.web.response.EventAlarmInfoResp;
import com.zhdl.modules.prefiresys.web.response.EventRecordsResp;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface EventRecordsService  extends BaseService<EventRecords, String> {
    EventRecords addEventRecords(EventRecords eventRecords);

    boolean findByEventStatus(boolean status);

    EventRecords updateEventRecords(EventRecords eventRecords);

    EventRecords findByEventId(String id);

    List<EventAlarmInfoResp> findAlarmByEventId(EventAlarmInfoReq eventAlarmInfoReq);

    Page<EventRecordsResp> findAllRecord(EventRecordsListRequest request, Pageable pageable);
}
